 //判断是否已经登录
 let username = sessionStorage.getItem('username') || localStorage.getItem('username');
 if (!username) {
   location.href = 'login.html';

 } else {
  $('#currentUser').html(username);
 }